package sql;

import java.io.File;
import java.io.IOException;

import org.bytedeco.javacpp.Loader;

/**
 * java 调用 ffmpeg 测试
 * @author Administrator
 *
 */
public class FfmpegTest {
	public static void main(String[] args) throws InterruptedException, IOException {
		 String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
	     ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "F:/face/vido/2.mp4", "-vcodec", "h264", "F:/face/vido/output.mp4");
		 pb.inheritIO().start().waitFor();
		 
		 File temp = File.createTempFile("audio_example", ".wav");
		 
	}
}
